package com.smart.model.dtomapper;

import com.smart.model.domain.ProjectEquDO;
import com.smart.model.request.ProjectEquRequest;
import com.smart.model.vo.ProjectEquVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface ProjectEquDtoMapper {

    ProjectEquDtoMapper INSTANCE = Mappers.getMapper(ProjectEquDtoMapper.class);

    /**
    * DO to VO
    * @param projectEquDO
    * @return
    */
    ProjectEquVO do2VO(ProjectEquDO projectEquDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    ProjectEquDO request2DO(ProjectEquRequest request);
}
